package com.mtw.bbs.bbsUser.controller.provider;



import com.mtw.bbs.bbsUser.service.UserFollowService;
import com.mtw.bbs.common.core.vo.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;




@RestController
@RequiredArgsConstructor
@RequestMapping("provide/flow")
public class FlowProvider {

    private final UserFollowService userFollowService;




    /**
     * 根据用户id获取用户的关注id
     */
    @GetMapping(value = "/getFlowUserById")
    public Result<String> getFlowUserById(@RequestParam("userId") String userId) {
        return Result.success(userFollowService.getUserFollowList(userId));
    }









}
